Ext.define('Seq.echarts.Rectangular', {
    extend: 'Seq.echarts.Base',
    xtype: 'echartsrectangular',

    option: {
        xAxis: [{
            type: 'category',
            boundaryGap: true,
            data: []
        }],
        yAxis: [{
            type: 'value',
            scale: true,
            axisLabel: {
                formatter: '{value}'
            }
        }],
        dataZoom: [{
            type: 'slider',
            handleSize: 25,
            start: 0,
            end: 100
        }],
        legend: {
            top: '25px',
            left: 'center'
        },
        series: [{
            type: 'line',
            showSymbol: false,
            markPoint: {
                data: [{
                    type: 'max',
                    name: '最大值'
                }, {
                    type: 'min',
                    name: '最小值'
                }]
            }
        }],
        tooltip: {
            trigger: 'axis',
            triggerOn: 'mousemove'
        },
        toolbox: {
            show: true,
            feature: {
                magicType: {
                    show: true,
                    type: ['line', 'bar']
                }
            }
        }
    }
})